<template>
	<view class="orderList" :style="{height:show1?'100vh':''}">
		<headertop title="商城订单" str="orderlist" str1="oridei" :back1="back1"></headertop>
		<view class="orderListback">

		</view>
		<view class="" :style="{'margin-top':statusBarHeight+'px','width':'100%','height':barHeight+'px'}">
		</view>
		<view class="seachbox">
			<image src="https://chunchi.oss-cn-beijing.aliyuncs.com/static/Frame@2x(22).png" class="lefticon" mode="">
			</image>
			<input type="text" v-model="query.keywords" placeholder="请输入关键词进行搜索" />
			<view class="seachboxbtn" @click="init('搜索')">
				搜索
			</view>
			<image src="https://chunchi.oss-cn-beijing.aliyuncs.com/static/Frame@2x (9).png" class="closeicon"
				@click="closeinput" v-if="query.keywords" mode="">
			</image>
		</view>
		<scroll-view :scroll-left="leftnumstr" scroll-x="true" class="classifybox">
			<view style="display: inline-block;margin-right: 50rpx;">
				<view :class="query.type=='all'?'itembox activecolor':'itembox'" @click="qiehuan('all')">
					<span>全部</span>
					<view class="activebox" v-if="query.type=='all'">

					</view>
				</view>
			</view>
			<view style="display: inline-block;margin-right: 50rpx;">
				<view :class="query.type=='unpaid'?'itembox activecolor':'itembox'" @click="qiehuan('unpaid')">
					<span>待付款</span>
					<view class="activebox" v-if="query.type=='unpaid'">

					</view>
				</view>
			</view>
			<view style="display: inline-block;margin-right: 50rpx;">
				<view :class="query.type=='nosend'?'itembox activecolor':'itembox'" @click="qiehuan('nosend')">
					<span>待发货</span>
					<view class="activebox" v-if="query.type=='nosend'">

					</view>
				</view>
			</view>
			<view style="display: inline-block;margin-right: 50rpx;">
				<view :class="query.type=='nohexiao'?'itembox activecolor':'itembox'" @click="qiehuan('nohexiao')">
					<span>待核销</span>
					<view class="activebox" v-if="query.type=='nohexiao'">

					</view>
				</view>
			</view>
			<view style="display: inline-block;margin-right: 50rpx;">
				<view :class="query.type=='noget'?'itembox activecolor':'itembox'" @click="qiehuan('noget')">
					<span>待收货</span>
					<view class="activebox" v-if="query.type=='noget'">

					</view>
				</view>
			</view>
			<view style="display: inline-block;margin-right: 50rpx;">
				<view :class="query.type=='wancheng'?'itembox activecolor':'itembox'" @click="qiehuan('wancheng')">
					<span>已完成</span>
					<view class="activebox" v-if="query.type=='wancheng'">

					</view>
				</view>
			</view>
		</scroll-view>
		<view class="itemboxss">
			<view class="msgicon" v-if="!list.length">
				<image src="https://chunchi.oss-cn-beijing.aliyuncs.com/static/Frame@2x(21).png" mode="widthFix">
				</image>
				<view class="msgtext">
					暂无订单
				</view>
			</view>
			<view class="itembox" v-for="(item,index) in list" :key="index" @click="gopage('订单详情',item.id)">
				<view class="itembox_center">
					<view class="topline">
						<view class="dingdanbinhao">
							<image src="https://chunchi.oss-cn-beijing.aliyuncs.com/static/Frame@2x(23).png"
								class="dingdanbinhao_icon" mode=""></image>
							<span>订单编号：{{item.order_sn}}</span>
						</view>
						<view class="statustext">
							{{statustext(item.status_code)}}
						</view>
					</view>
					<view class="spinfo" v-for="ite in  item.items" :key="ite.id" v-if="item.items">
						<image :src="ite.goods_image" mode=""></image>
						<view class="text1">
							<view class="l1">
								<view class="bs">
									{{item.th_type==1?'快递':'自提'}}
								</view>
								<view class="bt1">{{ite.goods_title}}</view>
							</view>
							<view class="l2">
								{{ite.goods_subtitle}}
							</view>
							<view class="yajinbox">
								<span v-if="skufun(ite.goods_sku_text).length>1"><span
										style="font-size: 24rpx;color: #7F7F7F;">{{skufun(ite.goods_sku_text)[0]}} |
										{{skufun(ite.goods_sku_text)[1]}}</span></span>
								<span v-else><span
										style="font-size: 24rpx;color: #7F7F7F;">{{skufun(ite.goods_sku_text)[0]}}</span></span>
								<view class="tihuofs">
									x{{ite.goods_num}}
								</view>
							</view>
						</view>
					</view>
					<view class="bottomline" v-if="statustext(item.status_code)=='待付款'">
						<view class="" style="display: flex;">
							<view class="borderbtn" @click.stop="qxdd(item)">
								取消订单
							</view>
							<view class="btn" style="margin-left: 28rpx;" @click.stop="ljzf(item)">
								立即支付
							</view>
						</view>
					</view>
					<view class="bottomline" v-if="statustext(item.status_code)=='待发货'">
						<view class="borderbtn" @click.stop="sqtk(item)">
							申请退款
						</view>
					</view>
					<view class="bottomline" v-if="statustext(item.status_code)=='待核销'">
						<view class="borderbtn" style="margin-left: 28rpx;" @click.stop="sqss(item)">
							申请售后
						</view>

						<view class="borderbtn" style="margin-left: 28rpx;" @click.stop="hexiaoopen(item)">
							核销二维码
						</view>
					</view>
					<view class="bottomline" v-if="statustext(item.status_code)=='待收货'">
						<view class="" style="display: flex;">
							<view class="borderbtn" @click.stop="chakanwuliu(item)">
								查看物流
							</view>
							<view class="btn" style="margin-left: 28rpx;" @click.stop="open(item)">
								确认收货
							</view>
						</view>
					</view>
					<view class="bottomline"
						v-if="statustext(item.status_code)=='交易关闭'||statustext(item.status_code)=='退款完成'||statustext(item.status_code)=='已完成'">
						<view class="borderbtn">
							查看详情
						</view>
					</view>
					<!-- <view class="" style="height: 30rpx;" v-if="">

					</view> -->
				</view>
			</view>
		</view>
		<up-popup :show="show" mode="center" :zoom="false">
			<view class="popucenter" v-if="typestr!='物流'">
				<image src="https://chunchi.oss-cn-beijing.aliyuncs.com/static/Frame@2x (9).png" class="close"
					@click="show=false" mode="">
				</image>
				<view class="title">
					核销码
				</view>
				<canvas id="qrcode" canvas-id="qrcode" style="width: 332rpx;height: 332rpx;margin: 30rpx auto;"
					v-show="show"></canvas>
				<view class="btnss" @click="goResult(qrobj.hxnum)">
					核销码：{{qrobj.hxnum}}
				</view>
			</view>
			<view class="zsjm" v-if="typestr=='物流'">
				<image src="https://chunchi.oss-cn-beijing.aliyuncs.com/static/Frame@2x (9).png" class="closeicon"
					mode="" @click="show=false" />
				<view class="forms">
					<view class="linebox" style="margin-top: 50rpx;">
						<view class="title1">
							快递公司：
						</view>
						<view class="input" @click="gopage('招商加盟类型')">
							<input type="text" v-model="itemobj.express.express_name" placeholder="请选择"
								:disabled="true" />
						</view>
					</view>
					<view class="linebox">
						<view class="title1">
							快递单号：
						</view>
						<view class="input">
							<input type="text" v-model="itemobj.express.express_no" :disabled="true"
								placeholder="请输入联系人" />
						</view>
					</view>
				</view>
				<view class="qdbox" @click="goResult(itemobj.express.express_no)">
					复制快递单号
				</view>
			</view>
		</up-popup>
	</view>
</template>

<script setup>
	import UQRCode from '@/uni_modules/Sansnn-uQRCode/js_sdk/uqrcode/uqrcode.js';
	import {
		onPageScroll,
		onLoad,
		onShow,
		onReachBottom
	} from "@dcloudio/uni-app";
	import {
		ref,
		reactive,
		onMounted
	} from 'vue'
	import {
		orderlist,
		shouh,
		payPrepay,
		cancelorder,
		sqtk1
	} from '@/api/my.js'
	import {
		addcart
	} from '@/api/home.js'

	import headertop from '@/components/header.vue'
	const leftnumstr = ref('')
	const statusBarHeight = ref('')
	const barHeight = ref('')
	const lastpage = ref(0)
	const typestr = ref(0)
	const itemobj = ref({})
	const list = ref([])
	const show = ref(false)
	const qrobj = ref({})
	const back1 = ref({})
	const query = reactive({
		page: 1,
		limit: 10,
		keywords: '',
		type: 'all'
	})
	onMounted(() => {
		statusBarHeight.value = uni.getSystemInfoSync().statusBarHeight
		const {
			top,
			height
		} = wx.getMenuButtonBoundingClientRect();
		barHeight.value = height ? height + (top - statusBarHeight.value) * 2 : 38;
	})
	onShow(() => {
		query.page = 1
		list.value = []
		init()
	})
	onLoad((opt) => {
		query.type = opt.type
	})
	onReachBottom(() => {

		if (lastpage.value > query.page) {
			query.page++
			init()
		}
	})

	function closeinput() {
		query.keywords = ''
		query.type = 'all'
		query.page = 1
		list.value = []
		init()
	}
	onPageScroll((e) => {

		if (e.scrollTop > 100) {
			back1.value = '#FBE7D2'
		} else {
			back1.value = ''
		}

	})

	function chakanwuliu(item) {
		itemobj.value = item
		show.value = true
		typestr.value = '物流'
	}

	function hexiaoopen(item) {
		typestr.value = '核销码'
		// 获取uQRCode实例
		var qr = new UQRCode();
		// 设置二维码内容
		qr.data = item.hxnum
		// 设置二维码大小，必须与canvas设置的宽高一致
		qr.size = 166;
		// 调用制作二维码方法
		qr.make();
		// 获取canvas上下文

		var canvasContext = uni.createCanvasContext('qrcode', this); // 如果是组件，this必须传入

		// 设置uQRCode实例的canvas上下文
		qr.canvasContext = canvasContext;
		// 调用绘制方法将二维码图案绘制到canvas上
		qr.drawCanvas();
		show.value = true
		qrobj.value = item
	}
	async function addgwc(item) {
		const res = await addcart({
			goods_id: '',
			goods_num: 1,
			goods_sku_price_id: '',
			type: 'inc'
		})
	}

	function goResult(str) {
		uni.setClipboardData({
			data: str, // 需要复制的内容
			success: () => {
				// 成功提示框显示 1 秒钟
				uni.showToast({
					title: '复制成功',
					icon: 'success',
					duration: 1000
				});
			},
			fail: () => {
				// 失败提示框显示 1 秒钟
				uni.showToast({
					title: '复制失败，请重试',
					icon: 'none',
					duration: 1000
				});
			}
		});
	}

	function sqss(item) {
		uni.navigateTo({
			url: '/pages/my/sqth?id=' + item.id
		})
	}
	async function ljzf(item) {
		const res1 = await payPrepay({
			order_sn: item.order_sn,
			payment: 'wechat'
		})
		if (res1.code == 1) {
			var payobj = res1.data.pay_data
			uni.requestPayment({
				timeStamp: String(payobj.timeStamp),
				nonceStr: payobj.nonceStr,
				package: payobj.package,
				signType: payobj.signType,
				paySign: payobj.paySign,
				success(res) {
					setTimeout(() => {
						uni.showToast({
							title: '支付成功',
							icon: 'none'
						})
					}, 500)
					query.page = 1
					list.value = []
					init()
				},
				fail(e) {
					setTimeout(() => {
						uni.showToast({
							title: '支付失败',
							icon: 'none'
						})
					}, 500)
				}
			})
		}

	}

	function statustext(str) {
		if (str == 'unpaid') {
			return '待付款'
		} else if (str == 'nosend') {
			return '待发货'
		} else if (str == 'noget') {
			return '待收货'
		} else if (str == 'nohexiao') {
			return '待核销'
		} else if (str == 'wancheng') {
			return '已完成'
		} else {
			if (str == 'refund_agree') {
				return '退款完成'
			}
			return '交易关闭'
		}
	}

	function qxdd(item) {
		uni.showModal({
			title: '提示', // 标题（可选）
			content: '是否取消订单？', // 内容（可选）
			confirmText: '确定', // 确认按钮文字（可选，默认“确定”）
			cancelText: '取消', // 取消按钮文字（可选，默认“取消”）
			success: (res) => {
				if (res.confirm) {
					qxdd1(item)
					// 执行确定后的逻辑
				} else if (res.cancel) {

					// 执行取消后的逻辑
				}
			},
			fail: (err) => {
				console.error('弹窗调用失败', err);
			}
		});
	}

	function sqtk(item) {
		uni.showModal({
			title: '提示', // 标题（可选）
			content: '是否申请退款？', // 内容（可选）
			confirmText: '确定', // 确认按钮文字（可选，默认“确定”）
			cancelText: '取消', // 取消按钮文字（可选，默认“取消”）
			success: (res) => {
				if (res.confirm) {
					sstt(item)
					// 执行确定后的逻辑
				} else if (res.cancel) {
					// 执行取消后的逻辑
				}
			},
			fail: (err) => {
				console.error('弹窗调用失败', err);
			}
		});
	}
	async function sstt(item) {
		const res = await sqtk1({
			id: item.id
		})
		if (res.code == 1) {
			query.page = 1
			list.value = []
			init()
			setTimeout(() => {
				uni.showToast({
					title: '申请退款成功'
				})
			}, 500)
		} else {
			uni.showToast({
				title: res.msg,
				icon: 'none'
			})
		}
	}

	function open(item) {
		uni.showModal({
			title: '提示', // 标题（可选）
			content: '是否确认收货？', // 内容（可选）
			confirmText: '确定', // 确认按钮文字（可选，默认“确定”）
			cancelText: '取消', // 取消按钮文字（可选，默认“取消”）
			success: (res) => {
				if (res.confirm) {
					sh(item)
					// 执行确定后的逻辑
				} else if (res.cancel) {
					// 执行取消后的逻辑
				}
			},
			fail: (err) => {
				console.error('弹窗调用失败', err);
			}
		});
	}
	async function sh(item) {
		const res = await shouh({
			id: item.id
		})
		if (res.code == 1) {
			query.page = 1
			list.value = []
			init()
			setTimeout(() => {
				uni.showToast({
					title: '确认收货成功'
				})
			}, 500)

		} else {
			uni.showToast({
				title: res.msg,
				icon: 'none'
			})
		}

	}
	async function qxdd1(item) {
		const res = await cancelorder({
			id: item.id
		})
		if (res.code == 1) {
			query.page = 1
			list.value = []
			init()
			setTimeout(() => {
				uni.showToast({
					title: '取消成功'
				})
			}, 500)

		} else {
			uni.showToast({
				title: res.msg,
				icon: 'none'
			})
		}

	}
	async function init(str) {
		if (str == '搜索') {
			query.type = "all"
			query.page = 1
			list.value = []
		}
		const res = await orderlist(query)
		if (res.code == 1) {
			list.value.push(...res.data.data)
			lastpage.value = res.data.last_page
		}
	}

	function skufun(str) {
		if (!str) {
			return []
		}
		return str.split(',')
	}

	function gopage(str, id) {
		if (str == '订单详情') {
			uni.navigateTo({
				url: '/pages/fenlei/orderdetial?id=' + id
			})
		}
	}

	function qiehuan(str) {
		if (str != 'all') {
			query.keywords = ''
		}
		query.type = str
		query.page = 1
		list.value = []
		init()
	}
</script>


<style lang="scss">
	.zsjm {
		width: 668rpx;
		overflow: hidden;
		position: relative;
		background: #fff;
		border-radius: 30rpx;


		.qdbox {
			width: 604rpx;
			height: 80rpx;
			background: linear-gradient(to top, #CD936A 0%, #F5C89D 100%);
			border-radius: 40rpx 40rpx 40rpx 40rpx;
			text-align: center;
			line-height: 80rpx;
			font-family: PingFang SC, PingFang SC;
			font-weight: bold;
			font-size: 28rpx;
			color: #FFFFFF;
			margin: auto;
			margin-top: 20rpx;
			margin-bottom: 50rpx;
		}

		.forms {
			width: 604rpx;
			margin: auto;
			margin-top: 30rpx;
			overflow: hidden;

			.linebox {
				width: 100%;
				display: flex;
				height: 84rpx;
				background: #F7F8FA;
				border-radius: 16rpx 16rpx 16rpx 16rpx;
				border: 2rpx solid #F7F8FA;
				align-items: center;
				justify-content: space-between;
				margin-bottom: 30rpx;

				.title1 {
					font-family: PingFang SC, PingFang SC;
					font-weight: 400;
					font-size: 28rpx;
					color: #1D2129;
					margin-left: 28rpx;
				}

				.input {
					display: flex;
					align-items: center;
					margin-right: 20rpx;

					input {
						text-align: right;
						font-size: 24rpx;
					}

					.rightarrow {
						width: 24rpx;
						height: 24rpx;
					}
				}
			}
		}

		.title {
			width: 100%;
			text-align: center;
			margin-top: 48rpx;
			font-family: PingFang SC, PingFang SC;
			font-weight: bold;
			font-size: 36rpx;
			color: #1D2129;
		}

		.closeicon {
			width: 44rpx;
			height: 44rpx;
			position: absolute;
			right: 24rpx;
			top: 24rpx;
		}
	}

	.closeicon {
		width: 40rpx;
		height: 40rpx;
		margin-left: 180rpx;
	}

	::v-deep .u-popup__content {
		background-color: rgba(255, 0, 0, 0) !important;
	}

	::v-deep .u-popup__content {
		background-color: rgba(255, 0, 0, 0) !important;
	}

	.popucenter {
		width: 592rpx;
		background: linear-gradient(180deg, #FBE9D4 0%, #FFFFFF 63%);
		border-radius: 28rpx 28rpx 28rpx 28rpx;
		overflow: hidden;
		position: relative;
		display: flex;
		flex-direction: column;
		align-items: center;

		.close {
			width: 48rpx;
			height: 48rpx;
			position: absolute;
			top: 0%;
			right: 0%;
			margin-right: 24rpx;
			margin-top: 24rpx;
		}

		.title {
			font-family: PingFang SC, PingFang SC;
			font-weight: bold;
			font-size: 36rpx;
			color: #1D2129;
			text-align: center;
			margin-top: 48rpx;
			width: 100%;
			margin-bottom: 50rpx;
		}

		.btnss {
			width: 256rpx;
			height: 56rpx;
			background: #EABE8D;
			border-radius: 8rpx 8rpx 8rpx 8rpx;
			font-family: PingFang SC, PingFang SC;
			font-weight: bold;
			font-size: 28rpx;
			color: #FFFFFF;
			text-align: center;
			line-height: 56rpx;
			margin-bottom: 44rpx;
		}

		.erweima {
			width: 332rpx;
			height: 332rpx;
			border-radius: 0rpx 0rpx 0rpx 0rpx;
			margin: 30rpx auto;

		}
	}

	.msgicon {
		width: 608rpx;
		margin: 100rpx auto;
		overflow: hidden;

		.msgtext {
			font-family: PingFang SC, PingFang SC;
			font-weight: 400;
			font-size: 28rpx;
			color: #86909C;
			text-align: center;
			width: 100%;
			margin-top: -30rpx;
		}

		image {
			width: 608rpx;
		}
	}

	.activecolor {
		color: #D1986F !important;
	}

	.orderList {
		width: 100%;
		overflow: hidden;
		position: relative;

		.itemboxss {
			width: 686rpx;
			margin: auto;
			margin-top: 30rpx;

			.itembox {
				width: 686rpx;
				background: #FFFFFF;
				box-shadow: 0rpx 0rpx 14rpx 0rpx rgba(0, 0, 0, 0.18);
				border-radius: 16rpx 16rpx 16rpx 16rpx;
				margin-bottom: 28rpx;
				overflow: hidden;

				&_center {
					width: 630rpx;
					margin: auto;
					overflow: hidden;

					.bottomline {
						width: 100%;
						overflow: hidden;
						height: 124rpx;
						border-top: 1rpx solid #C9CDD4;
						display: flex;
						align-items: center;
						margin-top: 28rpx;
						flex-direction: row-reverse;

						.borderbtn {
							width: 190rpx;
							height: 64rpx;
							border-radius: 200rpx 200rpx 200rpx 200rpx;
							border: 2rpx solid #C9CDD4;
							text-align: center;
							line-height: 64rpx;
							font-weight: 400;
							font-size: 28rpx;
							color: #4E5969;
						}

						.btn {
							width: 178rpx;
							height: 64rpx;
							background: #FFEFDE;
							border-radius: 200rpx 200rpx 200rpx 200rpx;
							text-align: center;
							line-height: 64rpx;
							font-family: PingFang SC, PingFang SC;
							font-weight: bold;
							font-size: 28rpx;
							color: #D1986F;
						}
					}

					.spinfo {
						width: 100%;
						overflow: hidden;
						margin-top: 36rpx;
						display: flex;
						align-items: center;

						image {
							width: 156rpx;
							height: 156rpx;
							border-radius: 16rpx 16rpx 16rpx 16rpx;
						}

						.text1 {
							width: 452rpx;
							margin-left: 16rpx;
							overflow: hidden;

							.l1 {
								display: flex;
								align-items: center;
								width: 100%;

								.bt1 {
									width: 80%;
									display: -webkit-box;
									-webkit-box-orient: vertical;
									-webkit-line-clamp: 1;
									overflow: hidden;
									font-family: PingFang SC, PingFang SC;
									font-weight: 500;
									font-size: 28rpx;
									color: #1D2129;
									margin-left: 12rpx;
								}

								.bs {
									width: 64rpx;
									height: 40rpx;
									background: #FFEFDE;
									border-radius: 4rpx 4rpx 4rpx 4rpx;
									text-align: center;
									line-height: 40rpx;
									font-family: PingFang SC, PingFang SC;
									font-weight: 400;
									font-size: 24rpx;
									color: #A46F3A;
								}

								.box {
									width: 48rpx;
									height: 32rpx;
									background: #7EBC79;
									border-radius: 4rpx 16rpx 4rpx 16rpx;
									font-family: PingFang SC, PingFang SC;
									font-weight: 500;
									font-size: 24rpx;
									color: #FFFFFF;
									text-align: center;
									line-height: 32rpx;
									margin-right: 8rpx;
								}
							}

							.l2 {
								font-family: PingFang SC, PingFang SC;
								font-weight: 400;
								font-size: 24rpx;
								color: #7F7F7F;
								overflow: hidden;
								word-break: break-all;
								white-space: nowrap;
								margin-top: 18rpx;
								width: 408rpx;
							}

							.yajinbox {
								display: flex;
								align-items: center;
								margin-top: 28rpx;
								font-family: PingFang SC, PingFang SC;
								font-weight: 400;
								font-size: 24rpx;
								color: #86909C;
								justify-content: space-between;

								.tihuofs {
									font-family: PingFang SC, PingFang SC;
									font-weight: 400;
									font-size: 24rpx;
									color: #7F7F7F;
								}
							}
						}
					}

					.topline {
						width: 100%;
						display: flex;
						align-items: center;
						justify-content: space-between;
						margin-top: 28rpx;



						.dingdanbinhao {
							width: 75%;
							word-break: break-all;
							/* 或 */
							display: flex;
							align-items: center;
							font-family: PingFang SC, PingFang SC;
							font-weight: 500;
							font-size: 28rpx;
							color: #1D2129;

							&_icon {
								width: 32rpx;
								height: 32rpx;
							}
						}

						.statustext {
							font-family: PingFang SC, PingFang SC;
							font-weight: 500;
							font-size: 32rpx;
							color: #FF7613;
						}
					}
				}
			}
		}

		.orderListback {
			width: 100%;
			height: 664rpx;
			background: linear-gradient(180deg, #FCE6CD 0%, rgba(252, 230, 205, 0) 100%);
			border-radius: 0rpx 0rpx 0rpx 0rpx;
			position: absolute;
			z-index: -1;
		}

		.seachbox {
			width: 686rpx;
			height: 68rpx;
			background: rgba(255, 255, 255, 0.65);
			border-radius: 34rpx 34rpx 34rpx 34rpx;
			margin: auto;
			overflow: hidden;
			margin-top: 6rpx;
			display: flex;
			align-items: center;
			position: relative;

			.lefticon {
				margin-left: 20rpx;
				width: 32rpx;
				height: 32rpx;
			}

			input {
				margin-left: 16rpx;
				font-size: 24rpx;
			}

			.seachboxbtn {
				width: 112rpx;
				height: 44rpx;
				line-height: 44rpx;
				text-align: center;
				font-family: PingFang SC, PingFang SC;
				font-weight: 400;
				font-size: 28rpx;
				position: absolute;
				color: #1D2129;
				border-left: 2rpx solid #86909C;
				right: 0%;
			}
		}

		.classifybox {
			width: 100%;
			margin: auto;
			margin-left: 32rpx;
			white-space: nowrap;
			margin-top: 40rpx;

			.itembox {
				width: 96rpx;
				font-family: PingFang SC, PingFang SC;
				font-weight: 400;
				font-size: 32rpx;
				color: #1D2129;
				position: relative;
				margin-bottom: 28rpx;
				display: flex;
				flex-direction: column;
				align-items: center;

				.activebox {
					width: 48rpx;
					height: 6rpx;
					background: #D1986F;
					border-radius: 4rpx 4rpx 4rpx 4rpx;
					position: absolute;
					bottom: -70%;
					margin-top: 10rpx;
				}
			}
		}
	}
</style>